

using System;
using System.Collections.Generic;
using System.Text;
using DataAccessLayer;
using EntityLayer;
using DataLayer;
using System.Data;
using InfraStructureLayer;

namespace BusinessLayer
{
	public class busReferrers:BusinessBase
	{
		public busReferrers() : base()
		{
		}

		public void InsertReferrers(entReferrers parEntReferrers)
		{
			datReferrers insDatReferrers=null;
				DbConnector insDbConnector = new DbConnector();
			try
			{
				insDatReferrers = new datReferrers();
				insDatReferrers.InsertReferrers(parEntReferrers, insDbConnector);
			}
			catch (SFException ex)
			{
				this.ErrorMessage=ex.Message;
			}
		}

        public DataTable ReportTopVisitedPages(DateTime parStartDate, DateTime parEndDate)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datReferrers insDatReferrers = new datReferrers();
                return insDatReferrers.ReportTopVisitedPages(parStartDate, parEndDate, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
        public DataTable ReportPageViews(DateTime parStartDate, DateTime parEndDate)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datReferrers insDatReferrers = new datReferrers();
                return insDatReferrers.ReportPageViews(parStartDate, parEndDate, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
        public DataTable ReportPageViewsLanguageDetailed(DateTime parStartDate, DateTime parEndDate)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datReferrers insDatReferrers = new datReferrers();
                return insDatReferrers.ReportPageViewsLanguageDetailed(parStartDate, parEndDate, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }
        public DataTable ReportReferrers(DateTime parStartDate, DateTime parEndDate)
        {
            DbConnector insDbConnector = new DbConnector();
            try
            {
                datReferrers insDatReferrers = new datReferrers();
                return insDatReferrers.ReportReferrers(parStartDate, parEndDate, insDbConnector);
            }
            catch (SFException ex)
            {
                this.ErrorMessage = ex.Message;
            }
            return null;
        }

	}
}